#pragma once

#include <drogon/HttpController.h>
namespace api {
    class Controller : public drogon::HttpController<Controller> {
        public:
        METHOD_LIST_BEGIN
        ADD_METHOD_TO(Controller::process, "*.*", drogon::Post, drogon::Get, drogon::Head);
        METHOD_LIST_END

        void process(const drogon::HttpRequestPtr& req, std::function<void(const drogon::HttpResponsePtr&)>&& callback);
        public:
        Controller();
    };
} // namespace api
